/**
 * test class TwoWayLink 
 */
package cn.netjava.softkid.chapter03;

/**
 * @author softkid
 *
 */
public class TwoWayLinkTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		TwoWayLink link = new TwoWayLink();
		link.addNodeAtFirst("a");
		link.addNodeAtFirst("b");
		link.addNodeAtFirst("c");
		link.addNodeAtFirst("d");
		
		link.insertNode("f", 1);
//		link.deleteAtFirst();
//		link.deleteAtLast();
		link.outputFromF2L();
		System.out.println();
//		System.out.println(link.getNode(3));
		System.out.println();
		link.outputFromLtF();

	}

}
